Ext.define('HIT.view.ApplyFormCustomerAddrPanel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.applyformcustomeraddrpanel',
    id   : 'panel-applyformcustomeraddrpanel',
    frame: false,
	layout: {
		type: 'anchor'
	},
	initComponent: function() {
		var me = this;
		Ext.applyIf(me, {
			items: [
				{
					xtype: 'gridpanel',
					id:'applyFormCustomerAddrPanel',
					anchor : '100% 100%',
					columnLines: false,
					autoScroll: true,
					dock: 'top',
					store : 'ApplyFormCustomerAddrStore',
					columns: [
						{
							xtype: 'rownumberer',
							resizable: true,
							width: 30
						},
						{		
							xtype: 'gridcolumn',
							width: 160,
							align: 'center',
							dataIndex : 'recv_company',
							text: Share.T('收件公司名称')
						},
						{
							xtype: 'gridcolumn',
							width: 200,
							align: 'center',
							dataIndex : 'recv_ticket',
							text: Share.T('发票收件人')
						},
						{
							xtype: 'gridcolumn',
							align: 'center',
							width: 200,
							dataIndex: 'recv_email',
							text: Share.T('收件人邮箱')
						},
						{
							xtype: 'gridcolumn',
							width: 200,
							align: 'center',
							dataIndex : 'recv_phone',
							text: Share.T('联系人手机')
						},
						{
							xtype: 'gridcolumn',
							align: 'center',
							width: 120,
							dataIndex: 'recv_address',
							text: Share.T('收件人地址')
						},
						{
							xtype: 'gridcolumn',
							align: 'center',
							width: 120,
							dataIndex: 'recv_tel',
							text: Share.T('收件单位电话')
						}
					],
					viewConfig: {
						enableTextSelection:true
					},
					selModel: Ext.create('Ext.selection.CheckboxModel', {
						mode : 'single',
						checkOnly: false
					}),
					dockedItems: [
					{
						xtype: 'pagingtoolbar',
						dock: 'bottom',
						id:'applyFormCustomerAddrPanelPage',
						width: 360,
						inputItemWidth:45,
						displayInfo: true,
						store : 'ApplyFormCustomerAddrStore',
						plugins: [{
							ptype: "pagesize",
							uxPageSize: page_size}]
					}]
				}
			]
		});
		me.callParent(arguments);
	}
    
});